/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package logica;

import principal.Chofer;
import principal.ListaChoferes;

/**
 *
 * @author Miguel
 */
public class validarLogueoChoferes {

    public Boolean validarChr(String login, String password, ListaChoferes listClt){

        Boolean resultado = Boolean.FALSE;
    if(!login.equals("login") && !password.equals("1234567890"))
        for(Chofer aux: listClt.getChofer()){
            if(aux.getLogin().equals(login) && aux.getPassword().equals(password))
                return resultado = Boolean.TRUE;
        }

        return resultado;
    }
}
